﻿using PhuLeBooze.UICode;
using PhuLeBussinessObject.Product;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PhuLeBooze
{
    public partial class product : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string html = "";
            CProductTypeUI ui = new CProductTypeUI();
            IList<CProductType> list = ui.GetList();
            if(list!=null)
            foreach (CProductType item in list) {
                html += string.Format("<li><a href='/procuctdetail/{0}' class='procuctdetail' class='procuctdetail'  title=\"{2}\" ><img src='{1}' /></a></li>", item.ID, item.Thumbnail, item.NameVN);
            }
            ltrDetail.Text = html;
        }
    }
}